package com.tamecode.bean.di;

import java.math.BigDecimal;

public class Car {

    private String brand;

    private String corp;

    private BigDecimal price;

    private Integer maxSpeed;

    private Boss boss;

    public Car() {
    }

    public Car(String brand, BigDecimal price) {
        this.brand = brand;
        this.price = price;
    }

    // 构造函数使用一个Boss实例
    public Car(String brand, Boss boss) {
        this.brand = brand;
        this.boss = boss;
    }

    public Car(String brand, String corp, BigDecimal price) {
        this.brand = brand;
        this.corp = corp;
        this.price = price;
    }

    public Car(String brand, String corp, Integer maxSpeed) {
        this.brand = brand;
        this.corp = corp;
        this.maxSpeed = maxSpeed;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getCorp() {
        return corp;
    }

    public void setCorp(String corp) {
        this.corp = corp;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Integer getMaxSpeed() {
        return maxSpeed;
    }

    public void setMaxSpeed(Integer maxSpeed) {
        this.maxSpeed = maxSpeed;
    }

    public Boss getBoss() {
        return boss;
    }

    public void setBoss(Boss boss) {
        this.boss = boss;
    }
}
